const fp = require('lodash/fp');

// 3.1
let ex1 = () => {
    maybe.map(fp.map(fp.add(1)));
}

// 3.2
let ex2 = () => {
    let first = xs.map(fp.first);
    return first._value;
}

// 3.3
let ex3 = () => {
    let first = safeProp('name')(user).map(name => name[1]);
    return first._value;
}

// 3.4
let ex4 = (n) => {
    let obj = Maybe.of(n).map(parseInt);
    return first._value;
}